package com.bamboo.eduservice.feign;

import com.bamboo.commonutils.ResponseEntity;
import com.bamboo.eduservice.feign.fallback.VodFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 视频服务feignClient
 *
 * @author jack.wu
 */
@FeignClient(value = "service-vod", fallback = VodFeignClientFallback.class)
public interface VodFeignClient {


    /**
     * 删除视频
     *
     * @param videoSourceId 视频id
     * @return 结果
     */
    @DeleteMapping("/eduvod/video/deleteAlyVideo/{videoSourceId}")
    ResponseEntity deleteAlyVideo(@PathVariable("videoSourceId") String videoSourceId);


}
